package cn.tedu.malls.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class BrandAddNewDTO implements Serializable {
    private static final String MASSEGES = "添加失败";

    @ApiModelProperty(value = "品牌名称",required = true)
  @NotNull(message = MASSEGES+"请输入品牌名称")
   private String name;

    @ApiModelProperty(value = "品牌拼音",required = true)
    @NotNull(message = MASSEGES+"请输入品牌拼音")
   private String pinyin;

    @ApiModelProperty(value = "品牌logo",required = true)
    @NotNull(message = MASSEGES+"请输入logo")
   private String logo;

    @ApiModelProperty(value = "描述信息",required = true)
    @NotNull(message = MASSEGES+"请输入描述")
   private String description;

    @ApiModelProperty(value = "关键字",required = true)
    @NotNull(message = MASSEGES+"请输入关键字")
   private String keywords;

    @ApiModelProperty(value = "自定义排序",required = true)
    @NotNull(message = MASSEGES+"请输入排序")
   private Integer sort;

    @ApiModelProperty(value = "品牌销量",required = true)
    @NotNull(message = MASSEGES+"请输入销量")
   private Integer sales;

    @ApiModelProperty(value = "商品数量",required = true)
    @NotNull(message = MASSEGES+"请输入商品数量")
   private Integer productCount;

    @ApiModelProperty(value = "评论总数量",required = true)
    @NotNull(message = MASSEGES+"请输入评论总数量")
   private Integer commentCount;

    @ApiModelProperty(value = "好评数量",required = true)
    @NotNull(message = MASSEGES+"请输入好评数量")
   private Integer positiveCommentCount;

    @ApiModelProperty(value = "是否启用",required = true)
    @NotNull(message = MASSEGES+"请输入是否启用")
   private Integer enable;
}
